package com.ray.mapper;

import com.ray.bean.EquipmentAlarmCodeBean;
import com.ray.bean.MachineBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MachineMapper {

    void updateMachine(MachineBean machineBean);

    List<MachineBean> getAllMachineBean();

    int updateBatchMachine(@Param("machines") List<Map<String, Object>> machines);
    int insertAtTimeData(@Param("machines") List<Map<String, Object>> machines);

    void addMachine(MachineBean machineBean);

    void remove(MachineBean machineBean);

    MachineBean getMachineById(Map map);

    /**
     * 修改维修列表中物联网卡状态
     * @param updateDataList
     */
	void updateIntertnetCardState(@Param("updateDataList")List<EquipmentAlarmCodeBean> updateDataList);
}
